<?php

namespace App\Http\Controllers\Article\Merchant;

use App\Http\Controllers\BaseController;
use App\Http\Validate\Article\ArticleCategoryValidate;
use App\Http\Validate\Article\ArticleRecommendValidate;
use App\Http\Validate\Article\ArticleValidate;
use App\Models\Article\ArticleRecommendModel;
use App\Service\Article\ArticleCategoryService;
use App\Service\Article\ArticleRecommendService;
use App\Service\Article\ArticleService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

class ArticleRecommendController extends BaseController
{
    /**
     * 预览
     *
     * @return JsonResponse
     */
    public function lists(): JsonResponse
    {
        $list = ArticleRecommendService::getRecommendList([
            'isActivate' => ArticleRecommendModel::ACTIVATE_ON
        ]);

        return $this->success($list);
    }
}
